package smartlifev30.com.sdk.bean.response;

import java.util.List;


/**
 * 网关端配置文件版本查询
 *
 * @author uesr
 * @date 2018/8/9
 */

public class CfgVerQueryResponse {


    /**
     * from : 000c4355fc6b
     * msg_class : version_mgmt
     * msg_id : ANDuF-077
     * msg_name : cfg_ver_query
     * msg_type : response
     * msg_version : 0.1
     * status : 0
     * to : 18782918305
     * token : 259949bada3543c2b5b894d0c6cf8252
     * version_info : [{"module":"device","version":421},{"module":"scene","version":254},{"module":"timer","version":146},{"module":"linkage","version":146},{"module":"user","version":1},{"module":"alarm_record","version":1},{"module":"door_record","version":1},{"module":"event_record","version":1},{"module":"room","version":3}]
     */

    private String from;
    private String msg_class;
    private String msg_id;
    private String msg_name;
    private String msg_type;
    private String msg_version;
    private int status;
    private String to;
    private String token;
    private List<VersionInfoBean> version_info;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getMsg_class() {
        return msg_class;
    }

    public void setMsg_class(String msg_class) {
        this.msg_class = msg_class;
    }

    public String getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(String msg_id) {
        this.msg_id = msg_id;
    }

    public String getMsg_name() {
        return msg_name;
    }

    public void setMsg_name(String msg_name) {
        this.msg_name = msg_name;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public String getMsg_version() {
        return msg_version;
    }

    public void setMsg_version(String msg_version) {
        this.msg_version = msg_version;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<VersionInfoBean> getVersion_info() {
        return version_info;
    }

    public void setVersion_info(List<VersionInfoBean> version_info) {
        this.version_info = version_info;
    }

    public static class VersionInfoBean {
        /**
         * module : device
         * version : 421
         */

        private String module;
        private int version;

        public String getModule() {
            return module;
        }

        public void setModule(String module) {
            this.module = module;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        @Override
        public String toString() {
            return "VersionInfoBean{" +
                    "module='" + module + '\'' +
                    ", version=" + version +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "CfgVerQueryResponse{" +
                "from='" + from + '\'' +
                ", msg_class='" + msg_class + '\'' +
                ", msg_id='" + msg_id + '\'' +
                ", msg_name='" + msg_name + '\'' +
                ", msg_type='" + msg_type + '\'' +
                ", msg_version='" + msg_version + '\'' +
                ", status=" + status +
                ", to='" + to + '\'' +
                ", token='" + token + '\'' +
                ", version_info=" + version_info +
                '}';
    }
}
